package com.shensi.api.pay.client;

import com.shensi.api.pay.pojo.PayOrder;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.api.pay.param.ResultData;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = CloudConstant.PAY_SERVER)
public interface PayOrderClient {


    @RequestMapping(value = "/sendSettleInfo", method = RequestMethod.POST)
    @ResponseBody
    @ApiOperation(value = "查询订单列表", httpMethod = "POST", notes = "查询订单列表所用到参数：stationId(油站ID);pageNum（页码）；pageSize（页面大小）； beginTime（开始时间）；endTime（结束时间）；支付方式（非必传）")
    public String pushSettleInfo();


    /*
     * pos临时查询订单列表
     * @param stationId
     * @param userName
     * @return
     */
    @RequestMapping(value = "/selectPosPayOrdersListTmp", method = RequestMethod.POST)
    @ResponseBody
    @ApiOperation(value = "查询订单列表", httpMethod = "POST", notes = "查询订单列表所用到参数：stationId(油站ID);pageNum（页码）；pageSize（页面大小）； beginTime（开始时间）；endTime（结束时间）；支付方式（非必传）")
    public String selectPosPayOrdersListTmp(@RequestBody PayOrder request);

    @GetMapping(value = "/getCdkOrderResult/{cdkKey}")
    @ResponseBody
    @ApiOperation(value = "查询车队卡订单结果", httpMethod = "GET", notes = "key 卡号加时间戳")
    public ResultData getCdkOrderResult(@PathVariable("cdkKey") String key);
}
